package com.maket.scxx.domain;


import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serializable;

/**
 * 检验项目与检验标准表
 * @TableName jyxm_inspection_items_and_jybz_standards
 */
public class JyxmInspectionItemsAndJybzStandards extends BaseEntity {
    /**
     * 检验项目与检验标准id
     */
    private Integer jyId;

    /**
     * 检查项目编码
     */
    private String jcCode;

    private String xmCode;

    public String getXmCode() {
        return xmCode;
    }

    public void setXmCode(String xmCode) {
        this.xmCode = xmCode;
    }

    /**
     * 模板编码
     */
    private String mbCode;

    private static final long serialVersionUID = 1L;

    /**
     * 检验项目与检验标准id
     */
    public Integer getJyId() {
        return jyId;
    }

    /**
     * 检验项目与检验标准id
     */
    public void setJyId(Integer jyId) {
        this.jyId = jyId;
    }

    /**
     * 检查项目编码
     */
    public String getJcCode() {
        return jcCode;
    }

    /**
     * 检查项目编码
     */
    public void setJcCode(String jcCode) {
        this.jcCode = jcCode;
    }

    /**
     * 模板编码
     */
    public String getMbCode() {
        return mbCode;
    }

    /**
     * 模板编码
     */
    public void setMbCode(String mbCode) {
        this.mbCode = mbCode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JyxmInspectionItemsAndJybzStandards other = (JyxmInspectionItemsAndJybzStandards) that;
        return (this.getJyId() == null ? other.getJyId() == null : this.getJyId().equals(other.getJyId()))
            && (this.getJcCode() == null ? other.getJcCode() == null : this.getJcCode().equals(other.getJcCode()))
            && (this.getMbCode() == null ? other.getMbCode() == null : this.getMbCode().equals(other.getMbCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJyId() == null) ? 0 : getJyId().hashCode());
        result = prime * result + ((getJcCode() == null) ? 0 : getJcCode().hashCode());
        result = prime * result + ((getMbCode() == null) ? 0 : getMbCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jyId=").append(jyId);
        sb.append(", jcCode=").append(jcCode);
        sb.append(", mbCode=").append(mbCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}